package xc.com.cms.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import xc.com.cms.domain.CmsTemplate;
import xc.com.cms.service.CmsTemplateService;

import java.util.List;
@RestController
@RequestMapping("/CmsTemplate")
@CrossOrigin
public class CmsTemplateController  {
    @Autowired
    private CmsTemplateService cmsTemplateService;
    @GetMapping("/find")
    public List<CmsTemplate> findall() {
        return cmsTemplateService.findall();
    }
}
